import request from '@/utils/request'

// 创建视频盾设备
export function createVideoDevice(data) {
  return request({
    url: '/audit/video-device/create',
    method: 'post',
    data: data
  })
}

// 更新视频盾设备
export function updateVideoDevice(data) {
  return request({
    url: '/audit/video-device/update',
    method: 'put',
    data: data
  })
}

// 删除视频盾设备
export function deleteVideoDevice(id) {
  return request({
    url: '/audit/video-device/delete?id=' + id,
    method: 'delete'
  })
}

// 获得视频盾设备
export function getVideoDevice(id) {
  return request({
    url: '/audit/video-device/get?id=' + id,
    method: 'get'
  })
}

// 获得视频盾设备分页
export function getVideoDevicePage(params) {
  return request({
    url: '/audit/video-device/page',
    method: 'get',
    params
  })
}
// 导出视频盾设备 Excel
export function exportVideoDeviceExcel(params) {
  return request({
    url: '/audit/video-device/export-excel',
    method: 'get',
    params,
    responseType: 'blob'
  })
}